//导入node的express框架
const express = require('express')
const expressWs = require('express-ws')
//导入用户路由处理函数模块
const wsHandler = require('../router_handler/ws.js')

const router = express.Router()
expressWs(router)

//WebSocket服务
router.ws('/ws/connection', wsHandler.wsConnection)

module.exports = router
